package cn.hinglo.permission.bean;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * @author HingLo
 * @createTime: 2018-11-21 14:52:48
 * @description: BaseRolePermission 模型
 */
@Entity
@Table(name = "role_permission")
public abstract class BaseRolePermission<M extends BaseRolePermission<M>> extends Model<M> implements IBean {

    @Column(name = "role_id")
    public java.lang.Long getRoleId() {
        return getLong("role_id");
    }

    public M setRoleId(java.lang.Long roleId) {
        set("role_id", roleId);
        return (M) this;
    }

    @Column(name = "permission_id")
    public java.lang.Long getPermissionId() {
        return getLong("permission_id");
    }

    public M setPermissionId(java.lang.Long permissionId) {
        set("permission_id", permissionId);
        return (M) this;
    }

}
